#include "timer.h"

using namespace tiny_muduo;

Timer::Timer(Timestamp timestamp, BasicFunc&& cb, double interval)
    :expiration_(timestamp),
    callback_(std::move(cb)),
    interval_(interval),
    repeat_(interval > 0.0)
{
}
